import request from '@/utils/request'

export function getYuangongList(_limit, _start) {
  return request({
    url: '/users',
    params: {
      _limit,
      _start
    }
  })
}
export function getYuangongCount() {
  return request({
    url: '/users/count'
  })
}
export function getYuangongById(id) {
  return request({
    url: '/users/' + id
  })
}
export function addYuangong(data) {
  return request({
    url: '/auth/local/register',
    method: 'post',
    data
  })
}
export function editYuangong(data) {
  return request({
    url: '/users/' + data.id,
    method: 'put',
    data
  })
}
export function delYuangong(id) {
  return request({
    url: '/users/' + id,
    method: 'delete'
  })
}

